home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global mnv, ppl, foes, advance
- if getAt(mnv, 1) > 1 then
- if (the keyCode > 124) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if the keyCode = 126 then
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) - 17
- else
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if (the keyCode > 122) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if sprite(getAt(ppl, 1)).flipH = 1 then
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) - 17
- else
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if getAt(mnv, 1) < 20 then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- setAt(mnv, 1, 1)
- end if
- end if
- end if
- else
- if the memberNum of sprite getAt(ppl, 1) < 82 then
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- end if
- end if
- if advance = 1 then
- foemov(43, 44, 60, 65, 66, 13, 7, 2, 2, 1, 12, 4)
- strata2(1)
- else
- if (advance = 2) or (advance = 3) then
- foemov(76, 77, 87, 94, 95, 8, 5, 3, 3, 2, 10, 3)
- foemov(103, 104, 116, 122, 123, 13, 7, 4, 4, 3, 9, 5)
- strata2(3)
- else
- if advance = 4 then
- foemov(43, 44, 60, 65, 66, 13, 7, 2, 2, 1, 12, 4)
- strata2(3)
- else
- strata2(3)
- end if
- end if
- end if
- end
-